package com.ybkj.o2o.sales.entity.passenger;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 乘客所属企业.
 * 
 * @author Administrator
 *
 */
public class Enterprise implements Serializable {
  private Long id;

  private String name; // 企业名称

  private String address; // 企业地址

  private String memo;

  private boolean allowOverdraw; // 是否允许所有成员签单

  private Long grade_id; // 级别

  private String grade_name; // 级别

  private Long companyId; // 公司Id

  private String companyName; // 所属公司名称

  private BigDecimal drawMoney; // 可提现金额

  private BigDecimal nodrawMoney; // 不可提现金额

  private BigDecimal frozenMoney; // 冻结金额

  private String created;

  private String updated;

  private Integer version;

  private String appKey; // 用于区别系统

  private List<Passenger> passengers; // 企业下面的乘客

  @JsonIgnore
  private Long drivingNumberTimes;


  public List<Passenger> getPassengers() {
    return passengers;
  }

  public void setPassengers(List<Passenger> passengers) {
    this.passengers = passengers;
  }

  private static final long serialVersionUID = 1L;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address == null ? null : address.trim();
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo == null ? null : memo.trim();
  }

  public boolean isAllowOverdraw() {
    return allowOverdraw;
  }

  public void setAllowOverdraw(boolean allowOverdraw) {
    this.allowOverdraw = allowOverdraw;
  }

  public Long getGrade_id() {
    return grade_id;
  }

  public void setGrade_id(Long grade_id) {
    this.grade_id = grade_id;
  }

  public String getCreated() {
    return created;
  }

  public void setCreated(String created) {
    this.created = created;
  }

  public String getUpdated() {
    return updated;
  }

  public void setUpdated(String updated) {
    this.updated = updated;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  public BigDecimal getDrawMoney() {
    return drawMoney;
  }

  public void setDrawMoney(BigDecimal drawMoney) {
    this.drawMoney = drawMoney;
  }

  public BigDecimal getNodrawMoney() {
    return nodrawMoney;
  }

  public void setNodrawMoney(BigDecimal nodrawMoney) {
    this.nodrawMoney = nodrawMoney;
  }

  public BigDecimal getFrozenMoney() {
    return frozenMoney;
  }

  public void setFrozenMoney(BigDecimal frozenMoney) {
    this.frozenMoney = frozenMoney;
  }

  public String getGrade_name() {
    return grade_name;
  }

  public void setGrade_name(String grade_name) {
    this.grade_name = grade_name;
  }

  public Long getDrivingNumberTimes() {
    if (null == drivingNumberTimes) {
      return 0L;
    }
    return drivingNumberTimes;
  }

  public void setDrivingNumberTimes(Long drivingNumberTimes) {
    this.drivingNumberTimes = drivingNumberTimes;
  }



}
